package org.example.seckill.controller;

import org.example.model.vo.h5.SecKillVo;
import org.example.seckill.service.SecKillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/seckill")
public class SecKillController {
    @Autowired
    private SecKillService secKillService;
    @RequestMapping("/list")
    public List<SecKillVo> selectAll() {
        return secKillService.selectAll();
    }
}
